import request from '@/utils/request'

// 养老数据汇总
// 分页
export const get_list = data => {
    return request({
        url: `/downloaders`,
        method: 'get',
        params: data
    })
}
// 下载
export const downLoad = id => {
    return request({
        url: `/downloaders/download/${id}`,
        method: 'get',
        responseType: 'blob'
    })
}
// 删除
export const deleteTask = id => {
    return request({
        url: `/downloaders/${id}`,
        method: 'delete'
    })
}